#!/bin/bash
read -p "请输入第一个数：" a
read -p "请输入运算符：" fuhao
read -p "请输入第二个数" a

if [ "$fuhao" -eq "+" ]
then
        echo $a+$a=$(($a + $a))
elif [ "$fuhao" -eq "-" ]
then
        echo $a-$a=$(($a - $a))
elif [ "$fuhao" -eq "*" ]
then
        echo $a*$a=$(($a * $a))
elif [ "$fuhao" -eq "/" ]
then
        echo $a/$a=$(($a / $a))
 else
        echo "错误"

fi
